home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Utils / The Gimp 2.2.1 / gimp-help-2-0.6-setup.exe / {app} / share / gimp / 2.0 / help / en / ch03s03s08.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-12-19  |  16.1 KB  |  410 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>3.8.┬áClone Tool</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
  10.     <link rel="start" href="index.html" title="GIMP User Manual" />
  11.     <link rel="up" href="ch03s03.html" title="3.┬áBrush Tools" />
  12.     <link rel="prev" href="ch03s03s07.html" title="3.7.┬áInk Tool" />
  13.     <link rel="next" href="ch03s03s09.html" title="3.9.┬áConvolve (Blur/Sharpen)" />
  14.   </head>
  15.   <body>
  16.     <div xmlns="" class="navheader">
  17.       <table width="100%" summary="Navigation header">
  18.         <tr>
  19.           <th colspan="3" align="center" id="chaptername">3.┬áBrush Tools</th>
  20.         </tr>
  21.         <tr>
  22.           <td width="20%" align="left"><a accesskey="p" href="ch03s03s07.html">Prev</a>┬á</td>
  23.           <th width="60%" align="center" id="sectionname">3.8.┬áClone Tool</th>
  24.           <td width="20%" align="right">┬á<a accesskey="n" href="ch03s03s09.html">Next</a></td>
  25.         </tr>
  26.       </table>
  27.       <hr />
  28.     </div>
  29.     <div class="sect2" lang="en" xml:lang="en">
  30.       <div class="titlepage">
  31.         <div>
  32.           <div>
  33.             <h3 class="title"><a id="gimp-tool-clone"></a>3.8.┬áClone Tool</h3>
  34.           </div>
  35.         </div>
  36.       </div>
  37.       <a id="id3438497" class="indexterm"></a>
  38.       <div class="informalfigure">
  39.         <div class="mediaobject">
  40.           <img src="../images/toolbox/toolbox-clone.png" />
  41.           <div class="caption">
  42.             <p>
  43.           Clone tool icon in the Toolbox
  44.         </p>
  45.           </div>
  46.         </div>
  47.       </div>
  48.       <p>
  49.     The Clone tool uses the current brush to copy from an image or
  50.     pattern.  It has many uses:  one of the most important is to
  51.     repair problem areas in digital photos, by "painting over" them
  52.     with pixel data from other areas.  This technique takes a while to
  53.     learn, but in the hands of a skilled user it is very
  54.     powerful. Another important use is to draw patterned lines or
  55.     curves:  see <a href="ch02s04s10.html" title="4.10.┬áPatterns">Patterns</a> for
  56.     examples. 
  57.   </p>
  58.       <p>
  59.     If you want to clone from an image, instead of a pattern, you must
  60.     tell GIMP which image you want to copy from.  You do this by
  61.     holding down the Ctrl key and clicking in the desired source
  62.     image.  Until you have set the source in this way, you will not be
  63.     able to paint with the Clone tool:  the tool cursor tells you this
  64.     by showing a "forbidden" symbol.
  65.   </p>
  66.       <p>
  67.     If you clone from a pattern, the pattern is
  68.     <span class="emphasis"><em>tiled</em></span>; that is, when the point you are
  69.     copying from moves past one of the edges, it jumps to the opposite
  70.     edge and continues, as though the pattern were repeated
  71.     side-by-side, indefinitely.  When you clone from an image this
  72.     does not happen:  if you go beyond the edges of the source, the
  73.     Clone tool stops producing any changes.
  74.   </p>
  75.       <p>
  76.     You can clone from any drawable (that is, any layer, layer mask,
  77.     or channel) to any other drawable.  You can even clone to or from
  78.     the selection mask, by switching to QuickMask mode.  If this means
  79.     copying colors that the target does not support (for example,
  80.     cloning from an RGB layer to an Indexed layer or a layer mask),
  81.     then the colors will be converted to the closest possible
  82.     approximations.
  83.   </p>
  84.       <div class="simplesect" lang="en" xml:lang="en">
  85.         <div class="titlepage">
  86.           <div>
  87.             <div>
  88.               <h4 class="title"><a id="id3438593"></a>How to Activate</h4>
  89.             </div>
  90.           </div>
  91.         </div>
  92.         <p>
  93.       The Clone tool can be activated from an image menu as
  94.       <span class="guimenu">Tools</span>-><span class="guisubmenu">Paint Tools</span>-><span class="guimenuitem">Clone</span>; 
  95.       from the Toolbox by clicking on the tool icon 
  96.       <span class="guiicon">
  97.     <span class="inlinemediaobject"><img src="../images/toolbox/clone.png" /></span>
  98.       </span>;
  99.       or from the keyboard using the shortcut <span><b class="keycap">c</b></span>.
  100.     </p>
  101.       </div>
  102.       <div class="simplesect" lang="en" xml:lang="en">
  103.         <div class="titlepage">
  104.           <div>
  105.             <div>
  106.               <h4 class="title"><a id="id3438649"></a>Key modifiers</h4>
  107.             </div>
  108.           </div>
  109.         </div>
  110.         <p>
  111.       See the <a href="ch03s03.html#gimp-tool-brush" title="3.1.┬áCommon Features">Brush Tools
  112.       Overview</a> for a description of key modifiers that have the
  113.       same effect on all brush tools.
  114.     </p>
  115.         <div class="variablelist">
  116.           <dl>
  117.             <dt>
  118.               <span class="term">
  119.                 <span>
  120.                   <b class="keycap">Ctrl</b>
  121.                 </span>
  122.               </span>
  123.             </dt>
  124.             <dd>
  125.               <p>
  126.             The Ctrl key is used to select the source, if you are
  127.             cloning from an image:  it has no effect if you are
  128.             cloning from a pattern.  You can clone from any layer of any
  129.             image, by clicking on the image display, with the Ctrl key
  130.             held down, while the layer is active (as shown in the Layers
  131.             dialog).  If the Alignment is set to "Non-aligned" or
  132.             "Aligned" in the Tool Options, then the point you click on
  133.             becomes the origin for cloning:  the image data at that
  134.             point will be used when you first begin painting with the
  135.             Clone tool.  In source-selection mode, the cursor changes to
  136.             a crosshair-symbol.
  137.           </p>
  138.             </dd>
  139.           </dl>
  140.         </div>
  141.       </div>
  142.       <div class="simplesect" lang="en" xml:lang="en">
  143.         <div class="titlepage">
  144.           <div>
  145.             <div>
  146.               <h4 class="title"><a id="id3438700"></a>Tool Options</h4>
  147.             </div>
  148.           </div>
  149.         </div>
  150.         <div class="informalfigure">
  151.           <div class="mediaobject">
  152.             <img src="../images/toolbox/tool-options-clone.png" />
  153.             <div class="caption">
  154.               <p>
  155.             Tool Options for the Clone tool
  156.           </p>
  157.             </div>
  158.           </div>
  159.         </div>
  160.         <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
  161.           <table border="0" summary="Note">
  162.             <tr>
  163.               <td rowspan="2" align="center" valign="top" width="25">
  164.                 <img alt="[Note]" src="../images/note.png" />
  165.               </td>
  166.               <th align="left">Note</th>
  167.             </tr>
  168.             <tr>
  169.               <td colspan="2" align="left" valign="top">
  170.                 <p>
  171.         See the <a href="ch03s03.html#gimp-tool-brush" title="3.1.┬áCommon Features">Brush Tools
  172.         Overview</a> for a description of tool options that apply to
  173.         many or all brush tools.
  174.       </p>
  175.               </td>
  176.             </tr>
  177.           </table>
  178.         </div>
  179.         <div class="variablelist">
  180.           <dl>
  181.             <dt>
  182.               <span class="term">Pattern</span>
  183.             </dt>
  184.             <dd>
  185.               <p>
  186.           Clicking on the pattern symbol brings up the Patterns
  187.           dialog, which you can use to select the pattern to paint
  188.           with.  This option is only relevant if you are cloning from
  189.           a Pattern source.
  190.         </p>
  191.             </dd>
  192.             <dt>
  193.               <span class="term">Source</span>
  194.             </dt>
  195.             <dd>
  196.               <p>
  197.           The choice you make here determines whether data will be
  198.           copied from the pattern shown above, or from one of the
  199.           images you have open.  If you choose "Image source", you
  200.           must tell GIMP which layer to use as the source, by
  201.           Ctrl-clicking on it, before you can paint with the tool.
  202.         </p>
  203.             </dd>
  204.             <dt>
  205.               <span class="term">Alignment</span>
  206.             </dt>
  207.             <dd>
  208.               <p>
  209.           The Alignment mode sets how the source
  210.           position is offset from each brush stroke.
  211.         </p>
  212.               <div class="informaltable">
  213.                 <table border="0">
  214.                   <colgroup>
  215.                     <col />
  216.                     <col />
  217.                     <col />
  218.                   </colgroup>
  219.                   <tbody>
  220.                     <tr>
  221.                       <td>
  222.                   <div class="mediaobject"><img src="../images/tool-options/clone-non-align.png" /></div>
  223.                 </td>
  224.                       <td>
  225.                   <div class="mediaobject"><img src="../images/tool-options/clone-align.png" /></div>
  226.                 </td>
  227.                       <td>
  228.                   <div class="mediaobject"><img src="../images/tool-options/clone-registered.png" /></div>
  229.                 </td>
  230.                     </tr>
  231.                     <tr>
  232.                       <td>
  233.                   <p>Non-aligned</p>
  234.                 </td>
  235.                       <td>
  236.                   <p>Aligned</p>
  237.                 </td>
  238.                       <td>
  239.                   <p>Registered</p>
  240.                 </td>
  241.                     </tr>
  242.                   </tbody>
  243.                 </table>
  244.               </div>
  245.               <p>
  246.           Above: schematic illustration of the three possible alignment
  247.           modes.  The mouse cursor is shown as a red rectangle,
  248.           and the source point as a black crosshair.
  249.         </p>
  250.               <div class="itemizedlist">
  251.                 <ul type="disc">
  252.                   <li>
  253.                     <p><b>Non-aligned.┬á</b>
  254.                 In this mode, each brushstroke is treated separately.  For
  255.                 each stroke, the point where you first click is copied from
  256.                 the source origin; there is no relationship between one
  257.                 brush stroke and another.  In non-aligned mode, different
  258.                 brush strokes will usually clash if they intersect each
  259.                 other.
  260.               </p>
  261.                   </li>
  262.                   <li>
  263.                     <p><b>Aligned.┬á</b>
  264.                 In this mode, the first click you make when painting sets
  265.                 the offset between the source origin and the cloned result,
  266.                 and all subsequent brushstrokes use the same offset.  Thus,
  267.                 you can use as many brushstrokes as you like, and they will
  268.                 all mesh smoothly with one another.
  269.               </p>
  270.                     <p>
  271.               If you want to change the offset, you can do this by
  272.               switching to non-aligned mode, painting one stroke, then
  273.               switching back to aligned mode.  Subsequent strokes will
  274.               use the same offset as the first stroke.
  275.             </p>
  276.                   </li>
  277.                   <li>
  278.                     <p><b>Registered.┬á</b>
  279.                 This mode copies each pixel in the source to the pixel with
  280.                 the same offset in the target.  It is most commonly useful
  281.                 when you want to clone from one layer to another layer
  282.                 within the same image.  It is also useful when cloning from
  283.                 a pattern, if you want the left or upper edges of the
  284.                 pattern to line up precisely with the corresponding edges
  285.                 of the target layer.
  286.               </p>
  287.                   </li>
  288.                 </ul>
  289.               </div>
  290.             </dd>
  291.           </dl>
  292.         </div>
  293.       </div>
  294.       <div class="simplesect" lang="en" xml:lang="en">
  295.         <div class="titlepage">
  296.           <div>
  297.             <div>
  298.               <h4 class="title"><a id="id3438945"></a>Further Information</h4>
  299.             </div>
  300.           </div>
  301.         </div>
  302.         <div class="variablelist">
  303.           <dl>
  304.             <dt>
  305.               <span class="term">Transparency</span>
  306.             </dt>
  307.             <dd>
  308.               <p>
  309.             The effects of the Clone tool on transparency are a bit
  310.             complicated.  You cannot clone transparency:  if you try to
  311.             clone from a transparent source, nothing happens to the target.
  312.             If you clone from a partially transparent source, the effect is
  313.             weighted by the opacity of the source.  So, assuming 100%
  314.             opacity and a hard brush:
  315.           </p>
  316.               <div class="itemizedlist">
  317.                 <ul type="disc">
  318.                   <li>
  319.                     <p>
  320.                 Cloning translucent black onto white produces gray.
  321.               </p>
  322.                   </li>
  323.                   <li>
  324.                     <p>
  325.                 Cloning translucent black onto black produces black.
  326.               </p>
  327.                   </li>
  328.                   <li>
  329.                     <p>
  330.                 Cloning translucent white onto white produces white.
  331.               </p>
  332.                   </li>
  333.                   <li>
  334.                     <p>
  335.                 Cloning translucent white onto black produces gray.
  336.               </p>
  337.                   </li>
  338.                 </ul>
  339.               </div>
  340.               <p>
  341.             Cloning can never increase transparency, but, unless "keep
  342.             transparency" is turned on for the layer, it can reduce it.
  343.             Cloning an opaque area onto a translucent area produces an
  344.             opaque result; cloning a translucent area onto another
  345.             translucent area causes an increase in opacity.  
  346.           </p>
  347.             </dd>
  348.             <dt>
  349.               <span class="term">"Filter" brushes</span>
  350.             </dt>
  351.             <dd>
  352.               <p>
  353.             There are a few non-obvious ways to use the Clone tool to
  354.             obtain powerful effects.  One thing you can do is to create
  355.             "Filter brushes", that is, create the effect of applying a
  356.             filter with a brush.  To do this, duplicate the layer you
  357.             want to work on, and apply the filter to the copy.  Then
  358.             activate the Clone tool, setting Source to "Image source"
  359.             and Alignment to "Registered".  Ctrl-click on the filtered
  360.             layer to set it as the source, and paint on the original
  361.             layer:  you will then in effect be painting the filtered
  362.             image data onto the original layer. 
  363.           </p>
  364.             </dd>
  365.             <dt>
  366.               <span class="term">History brush</span>
  367.             </dt>
  368.             <dd>
  369.               <p>
  370.             You can use a similar approach to imitate Photoshop's
  371.             "History brush", which allows you to selectively undo or
  372.             redo changes using a brush.  To do this, start by
  373.             duplicating the image; then, in the original, go back to
  374.             the desired state in the image's history, either by
  375.             undoing or by using the Undo History dialog.  (This must
  376.             be done in the original, not the copy, because duplicating
  377.             an image does not duplicate the Undo history.)  Now
  378.             activate the Clone tool, setting Source to "Image source" 
  379.             and Alignment to "Registered".  Ctrl-click on a layer from
  380.             one image, and paint on the corresponding layer from the
  381.             other image.  Depending on how you do it, this gives you
  382.             either an "undo brush" or a "redo brush".
  383.           </p>
  384.             </dd>
  385.           </dl>
  386.         </div>
  387.       </div>
  388.     </div>
  389.     <div class="navfooter">
  390.       <hr />
  391.       <table width="100%" summary="Navigation footer">
  392.         <tr>
  393.           <td width="40%" align="left"><a accesskey="p" href="ch03s03s07.html">Prev</a>┬á</td>
  394.           <td width="20%" align="center">
  395.             <a accesskey="u" href="ch03s03.html">Up</a>
  396.           </td>
  397.           <td width="40%" align="right">┬á<a accesskey="n" href="ch03s03s09.html">Next</a></td>
  398.         </tr>
  399.         <tr>
  400.           <td width="40%" align="left" valign="top">3.7.┬áInk Tool┬á</td>
  401.           <td width="20%" align="center">
  402.             <a accesskey="h" href="index.html">Home</a>
  403.           </td>
  404.           <td width="40%" align="right" valign="top">┬á3.9.┬áConvolve (Blur/Sharpen)</td>
  405.         </tr>
  406.       </table>
  407.     </div>
  408.   </body>
  409. </html>
  410.